-- SCPropEffectAction
-- create by chendh
-- 属性触发行为

SCPropEffectAction = class("SCPropEffectAction", function()
    return ActionBase.create();
end);

function SCPropEffectAction.create(source, args)
    local self = SCPropEffectAction.new();
    self.source = source;
    self.args = args;
    return self;
end

-- 构造函数
function SCPropEffectAction:ctor()
end

-- 开始播放
function SCPropEffectAction:play()
    EventMgr.fire(event.SKY_COMBAT_PROP_EFFECT, {
        ["source"]  = self.source,
        ["args"]    = self.args,
    });

    return #self.args;
end

return SCPropEffectAction;